package models.inventory;

import models.core.BaseAttrValue;
import models.core.CompositeAttrValue;
import models.core.GipxyModel;

import javax.persistence.Entity;
import javax.persistence.ManyToMany;
import javax.persistence.ManyToOne;
import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: hungdq
 * Date: 4/30/12
 * Time: 4:21 PM
 * To change this template use File | Settings | File Templates.
 */
@Entity
public class ResourceValue extends GipxyModel {
    @ManyToOne
    public ResourceSpec spec;

    @ManyToMany
    public List<BaseAttrValue> baseAttrValues;

    @ManyToMany
    public List<CompositeAttrValue> compositeAttrValues;

    public static Finder<Long,ResourceValue> find = new Finder<Long,ResourceValue>(Long.class, ResourceValue.class);
}
